/**
* @author  sparkHou
* @date 2020-10-29 13:25
* @Description:
*/

<template>
  <div class="fileDialog">
    <el-dialog width="30%"
               :visible.sync="formShow"
               @close="handleClickDeal('cancel')"
               v-dialog-drag
               :modal-append-to-body="false"
               :close-on-click-modal="false">
      <span slot="title">
        提示
      </span>
      <div class="g-dialog-scroll">
        <a class="goHref" type="danger" href="./software/VideoWebPlugin.exe" target="_blank">请先安装插件,安装完毕后刷新页面！</a>
      </div>
      <div slot="footer" class="dialog-footer">
        <el-button size="small" @click="handleClickDeal('cancel')">
          <i class="iconfont icon-icon_cancel"></i> 取 消
        </el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
  export default {
    name: "fileDialog",
    props: {
      postDetail: {
        type: Object,
        default: {
          show: false,
        }
      },
    },

    watch: {
      'postDetail': {
        handler(val) {
          // 显示详情弹窗
          this.formShow = val.show;
          this.detailId = val.params.detailId
        }
      }
    },
    data() {
      return {
        formShow: false,
        fileSystem: {
          sys: 'buss',
          module: 'receiptdocument',
          entityClass: "receiptdocument",
          viewByAnon: true,
          longLife: false,
        },
        detailId: '',
        fileList: []
      }
    },
    methods: {
      // 获取绑定的附件
      // 点击各个流程的按钮事件
      handleClickDeal(type, res) {
        switch (type) {
            // 取消，关闭窗口
          case 'cancel':
            // 关闭弹窗
            this.formShow = false
            break
        }
      },
    }
  }
</script>

<style scoped lang="scss">
.goHref{
  text-decoration: underline;
  color: #0000ff;
}
</style>
